<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
<title>纳税人纳税遵从风险分析和预警</title>
</head>
<body>
	<div class="content-wrapper">
		<h3>服务管理与监控/纳税人纳税遵从风险分析和预警</h3>
		
		<div class="panel panel-primary">
			<div class="panel-heading">企业/纳税人遵从风险特征分析</div>
			<div class="panel-body">
			<div class="col-sm-6">
				<div id="chart1" style="height:400px"></div>
			</div>
			<div class="col-sm-6">
				<div id="chart2" style="height:400px"></div>
			</div>
			</div>
		</div>
		<div class="panel panel-primary">
			<div class="panel-heading">风险特征属性</div>
			<div class="panel-body">
			    <div id="chart3" style="height:400px"></div>
			</div>
		</div>
		
		<div class="panel panel-primary">
			<div class="panel-heading">企业/纳税人遵从风险预警列表</div>
			<div class="panel-body">
			<!-- <div>
			<form role="form" class="form-inline" style="">

					<div class="form-group">

						<input type="text" class="form-control" style="width: 400px;"
							placeholder="营业税隐瞒收入、个税礼品等20种违法类型" value="">
					</div>

					<button type="submit" class="btn btn-default btn-primary">
						<em class="fa fa-search"></em>查询
					</button>
				</form>
				</div> -->
				<br>
				<div class="table-responsive table-bordered">
							<table class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th style="text-align: center">纳税人识别号</th>
										<th style="text-align: center">纳税人名称</th>
										<th style="text-align: center">风险类别</th>
									</tr>
								</thead>
								<tbody>
									<tr class="gradeX ">
										<td style="text-align: center"><a href="#">XXXXXXXXXXXXXXXX</a></td>
										<td style="text-align: center">A某人</td>
											<td style="text-align: center">偷税</td>
									</tr>
									<tr class="gradeC">
										<td style="text-align: center"><a href="#">XXXXXXXXXXXXXXXX</a></td>
										<td style="text-align: center">B某人</td>
											<td style="text-align: center">偷税</td>
									</tr>
								</tbody>
							</table>
							</div>
			</div>
		</div>
			
		</div>
		



	<script type="text/javascript">
		
	var option1 = {
			timeline : {
				data : [ '2015-01-01', '2015-02-01', '2015-03-01',
						'2015-04-01', '2015-05-01', '2015-06-01'],
				label : {
					formatter : function(s) {
						return s.slice(5, 7) + '月';
					}
				},
				autoPlay : true,
				playInterval : 1000
			},
			
			options : [
						{
		    title : {
		        text: '企业遵从风险特征分析',
		        subtext: '',
		        x:'center'
		    },
		    tooltip : {
		        trigger: 'item',
		        formatter: function (params,ticket,callback) {
		        	var rs = params['1'] + ':' + params['2'] +'人<br/>';
		        	/* if(params['1']=='企税弥补亏损'){
		        		rs += '注册类型:xxx<br/> 经营范围:xxx <br/> 营业额:1000万 <br/>行业:制造业';
		        	}else{
		        		rs += '性别：男<br/> 年龄：35-40 <br/> 收入：3000-3500 <br/> 所属行业：餐饮';
		        	} */
		        	return rs;
		        }
		        /* formatter: "{b} : {c}人<br/> 性别：男<br/> 年龄：35<br/> 收入：3000<br/> 所属行业：餐饮" */
		    },
		    legend: {
		        orient : 'vertical',
		        x : 'left',
		        data:['未按规定申报','逾期申报','未准期填报财务报表','偷税','行政处罚','发票违规','加收滞纳金']
		    },
		    calculable : true,
		    series : [
		        {
		            name:'',
		            type:'pie',
                    center: ['50%', '40%'],
                    radius: '30%',
		            data:[
		                {value:335, name:'未按规定申报'},
		                {value:310, name:'逾期申报'},
		                {value:234, name:'未准期填报财务报表'},
		                {value:135, name:'偷税'},
		                {value:500, name:'行政处罚'},
		                 {value:600, name:'发票违规'},
		                 {value:600, name:'加收滞纳金'}
		            ]
		        }
		    ]
						},
						{
							 series : [
								        {
								            
								            data:[
								                  {value:335, name:'未按规定申报'},
									                {value:210, name:'逾期申报'},
									                {value:434, name:'未准期填报财务报表'},
									                {value:535, name:'偷税'},
									                {value:600, name:'行政处罚'},
									                 {value:700, name:'发票违规'},
									                 {value:200, name:'加收滞纳金'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                 {value:400, name:'未按规定申报'},
									                {value:210, name:'逾期申报'},
									                {value:534, name:'未准期填报财务报表'},
									                {value:735, name:'偷税'},
									                {value:400, name:'行政处罚'},
									                 {value:300, name:'发票违规'},
									                 {value:200, name:'加收滞纳金'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                 {value:335, name:'未按规定申报'},
		                {value:333, name:'逾期申报'},
		                {value:234, name:'未准期填报财务报表'},
		                {value:300, name:'偷税'},
		                {value:644, name:'行政处罚'},
		                 {value:600, name:'发票违规'},
		                 {value:644, name:'加收滞纳金'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                  {value:200, name:'未按规定申报'},
									                {value:210, name:'逾期申报'},
									                {value:235, name:'未准期填报财务报表'},
									                {value:133, name:'偷税'},
									                {value:511, name:'行政处罚'},
									                 {value:644, name:'发票违规'},
									                 {value:679, name:'加收滞纳金'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                 {value:335, name:'未按规定申报'},
									                {value:320, name:'逾期申报'},
									                {value:254, name:'未准期填报财务报表'},
									                {value:135, name:'偷税'},
									                {value:530, name:'行政处罚'},
									                 {value:400, name:'发票违规'},
									                 {value:700, name:'加收滞纳金'}
								            ]
								        }
						]
						}
						
						
						
						]
		};
	var option2 = {
			timeline : {
				data : [ '2015-01-01', '2015-02-01', '2015-03-01',
						'2015-04-01', '2015-05-01', '2015-06-01'],
				label : {
					formatter : function(s) {
						return s.slice(5, 7) + '月';
					}
				},
				autoPlay : true,
				playInterval : 1000
			},
			
			options : [
						{
		    title : {
		        text: '自然人遵从风险特征分析',
		        subtext: '',
		        x:'center'
		    },
		    tooltip : {
		        trigger: 'item',
		        formatter: function (params,ticket,callback) {
		        	var rs = params['1'] + ':' + params['2'] +'人<br/>';
		        	/* if(params['1']=='企税弥补亏损'){
		        		rs += '注册类型:xxx<br/> 经营范围:xxx <br/> 营业额:1000万 <br/>行业:制造业';
		        	}else{
		        		rs += '性别：男<br/> 年龄：35-40 <br/> 收入：3000-3500 <br/> 所属行业：餐饮';
		        	} */
		        	return rs;
		        }
		        /* formatter: "{b} : {c}人<br/> 性别：男<br/> 年龄：35<br/> 收入：3000<br/> 所属行业：餐饮" */
		    },
		    legend: {
		        orient : 'vertical',
		        x : 'left',
		        data:['未按规定申报','逾期申报','未准期填报财务报表','偷税','行政处罚','发票违规','加收滞纳金','房产交易环节核定价格...','房产交易价格争议处理']
		    },
		    calculable : true,
		    series : [
		        {
		            name:'',
		            type:'pie',
                    center: ['60%', '40%'],
                    radius: '30%',
		            data:[
		                {value:335, name:'未按规定申报'},
		                {value:310, name:'逾期申报'},
		                {value:234, name:'未准期填报财务报表'},
		                {value:135, name:'偷税'},
		                {value:500, name:'行政处罚'},
		                 {value:600, name:'发票违规'},
		                 {value:600, name:'加收滞纳金'},
		                 {value:600, name:'房产交易环节核定价格...'},
		                 {value:600, name:'房产交易价格争议处理'}
		            ]
		        }
		    ]
						},
						{
							 series : [
								        {
								            
								            data:[
								                  {value:335, name:'未按规定申报'},
									                {value:210, name:'逾期申报'},
									                {value:434, name:'未准期填报财务报表'},
									                {value:535, name:'偷税'},
									                {value:600, name:'行政处罚'},
									                 {value:700, name:'发票违规'},
									                 {value:200, name:'加收滞纳金'},
									                 {value:700, name:'房产交易环节核定价格...'},
									                 {value:200, name:'房产交易价格争议处理'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                 {value:400, name:'未按规定申报'},
									                {value:210, name:'逾期申报'},
									                {value:534, name:'未准期填报财务报表'},
									                {value:735, name:'偷税'},
									                {value:400, name:'行政处罚'},
									                 {value:300, name:'发票违规'},
									                 {value:200, name:'加收滞纳金'},
									                 {value:50, name:'房产交易环节核定价格...'},
									                 {value:700, name:'房产交易价格争议处理'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                 {value:335, name:'未按规定申报'},
		                {value:333, name:'逾期申报'},
		                {value:234, name:'未准期填报财务报表'},
		                {value:300, name:'偷税'},
		                {value:644, name:'行政处罚'},
		                 {value:600, name:'发票违规'},
		                 {value:644, name:'加收滞纳金'},
		                 {value:620, name:'房产交易环节核定价格...'},
		                 {value:610, name:'房产交易价格争议处理'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                  {value:200, name:'未按规定申报'},
									                {value:210, name:'逾期申报'},
									                {value:235, name:'未准期填报财务报表'},
									                {value:133, name:'偷税'},
									                {value:511, name:'行政处罚'},
									                 {value:644, name:'发票违规'},
									                 {value:679, name:'加收滞纳金'},
									                 {value:400, name:'房产交易环节核定价格...'},
									                 {value:200, name:'房产交易价格争议处理'}
								            ]
								        }
						]
						},
						{
							 series : [
								        {
								            
								            data:[
								                 {value:335, name:'未按规定申报'},
									                {value:320, name:'逾期申报'},
									                {value:254, name:'未准期填报财务报表'},
									                {value:135, name:'偷税'},
									                {value:530, name:'行政处罚'},
									                 {value:400, name:'发票违规'},
									                 {value:700, name:'加收滞纳金'},
									                 {value:800, name:'房产交易环节核定价格...'},
									                 {value:400, name:'房产交易价格争议处理'}
								            ]
								        }
						]
						}
						
						
						
						]
		};       
	
	var option3 = {
		    title : {
		        text: '风险特征属性',
		        subtext: ''
		    },
		    tooltip : {
		        trigger: 'axis'
		    },
		    legend: {
		        data:['风险特征:偷税']
		    },
		    calculable : true,
		    xAxis : [
		        {
		            type : 'category',
		            data : ['年龄 30-35','性别 男','年薪 10w','所属行业 餐饮']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'风险特征:偷税',
		            type:'bar',
		            data:[200, 300, 350, 100]
		            
		        }
		        
		    ]
		};
		                    
	
	require.config({
		paths : {
			echarts : '${ctx}/assets/echarts/build/dist'
		}
	});
	require([ 'echarts', 'echarts/chart/bar', 'echarts/chart/scatter',
			'echarts/chart/pie', 'echarts/chart/map', 'echarts/chart/tree',
			'echarts/chart/funnel', 'echarts/chart/gauge',
			'echarts/chart/wordCloud', 'echarts/chart/line'

	], function(ec) {
		//江苏省税务业务办理事项统计

		var chart1 = ec.init(document.getElementById('chart1'));
		chart1.setOption(option1, true);
		var chart2 = ec.init(document.getElementById('chart2'));
		chart2.setOption(option2, true);
		var chart3 = ec.init(document.getElementById('chart3'));
		chart3.setOption(option3, true);

		
		
		

	})
	
	</script>


</body>

</html>